function add_wheel(ele, callback) {
    if (window.navigator.userAgent.toLowerCase().indexOf("firefox") != -1) {
        ele.addEventListener("DOMMouseScroll", function () {
            if (event.detail < 0) {
                callback(1)
            } else {
                callback(-1)
            }
        })
    } else {
        ele.onmousewheel = function () {
            if (event.wheelDelta > 0) {
                callback(1)
            } else {
                callback(-1)
            }
        }
    }
}

//封装axios请求post

function axios_post(){
    
}



const baseURL = 'http://localhost:3000/'

exports.myTool = {
    add_wheel,
    baseURL,
    axios_post,
}